package com.samshow.config;

import com.samshow.interceptor.ConsulInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by niwb on 2017/3/7.
 */
public class ConsulMvcConfigurer extends WebMvcConfigurerAdapter {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ConsulInterceptor());
        super.addInterceptors(registry);
    }
}
